//package com.itheima.springboottilasmanager.filter;
//
//import jakarta.servlet.*;
//import jakarta.servlet.annotation.WebFilter;
//import jakarta.servlet.http.HttpServletRequest;
//
//import java.io.IOException;
////3.添加注解
//@WebFilter("/*")
//public class MyFilter implements Filter {
//    //2.重写方法
//    @Override
//    public void doFilter(ServletRequest servletRequest, ServletResponse servletResponse, FilterChain filterChain) throws IOException, ServletException {
//        HttpServletRequest request = (HttpServletRequest) servletRequest;
//        System.out.println("网络端请求路径"+request.getRequestURL());
//        System.out.println("执行了过滤器");
//        filterChain.doFilter(servletRequest,servletResponse);
//    }
//}
////